import { buildService } from '../../helper/service'

// 值类型为String或Object,String为url(method),Object同axios(config)参数支持相同,data和params只能为对象类型
const settings = {
  // 获取招标信息列表
  getSellList: {
    url: '/api/v1/resource/invite_list',
    method: 'get'
  },
  //获取招标详情数据
  getSellInfo: {
    url: '/api/v1/resource/invite_check',
    method: 'get'
  },
  //合同投标详情列表
  getSellDetailList: {
    url: '/api/v1/resource/bid_join',
    method: 'get'
  },
  //确认中标
  sureSell: {
    url: '/api/v1/resource/bid_join',
    method: 'put'
  }
}

export default buildService(settings)
